<?php
namespace Orx\Etl\Extractor;
/**
 * Extractor Fields Mapping
 *
 * It represant a field in the data source object, and its relationship
 * with the current application data model
 *
 * @author Xavier VILAIN
 * @package Orx\Etl\Extractor
 * @license #license-orx-etl#
 *
 * @property int	$extractor			Id of the format
 * @property int	$position			Field position in the source (if needed)
 * @property string	$source_fieldname	Source Field name (for control only)
 * @property int	$datatype			Expected Data Type
 * @property int	$sequence			Collector Object Sequence
 * @property int	$reference			Application Object Reference
 * @property text	$custom_function	Custom Function
 * @property bool	$active				Is an active type (can be selected)
 */
class Item  extends \Fox\Object {

	/**
	 * Reverse Link to Format
	 * @var string
	 */
	const LINK_EXTRACTOR = 'extractor';
	
	/**
	 * 
	 * Return Colmun label
	 * @return string
	 */
	public function label() {
		return $this->source_fieldname;
	}
}
\Fox\Dao::infos(
	Item::className(),
	new \Fox\Object\Info('etl_extractor_items', \Fox\Databases::DB_APP)
);